package org.rguess.patterns.interfaces.adapter;

/**
 * 适配器模式
 * @author dview
 *
 */
public class Program {
	public static void main(String[] args) {
		IAdapter dap = new Adapter();
		System.out.println((dap.drive()));
		dap = new CClass();
		// 调用第一个适配器
		System.out.println((dap.drive()));
		dap = new CObject();
		// 调用第二个适配器
		System.out.println((dap.drive()));
	}
}